﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Sys_ChangePassword.aspx.cs" Inherits="Youz.CreditRepay.Manage.Sys.Sys_ChangePassword" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <form id="frm" method="post" enctype="multipart/form-data" action="Handlers/Sys_AdminInfoHandler.ashx?type=ChangePassword&admin=<%: WebHelper.Get("admin") %>">
        <input id="MemberAccount" name="MemberAccount" value="<%: WebHelper.Get("MemberAccount") %>" type="hidden" />
        <table class="formtable">
            <% if (string.IsNullOrEmpty(WebHelper.Get("admin"))) { %>
            <tr>
                <th><%: R(LanguageModule.Sys_AdminInfo, "ChangePasswod_LoginPwd","登錄密碼") %></th>
                <td>
                    <input type="password" id="CurrentLoginPwd" name="CurrentLoginPwd" maxlength="20" class="required" /></td>
            </tr>
            <% } %>
            <tr>
                <th><%: R(LanguageModule.Sys_AdminInfo, "ChangePassword_NewLoginPwd","新登錄密碼") %></th>
                <td>
                    <input type="password" id="LoginPwd" name="LoginPwd" minlength="6" maxlength="20" class="required" /></td>
            </tr>
            <tr>
                <th><%: R(LanguageModule.Sys_AdminInfo, "ChangePassword_NewLoginPwdConfirm","確定新登錄密碼") %></th>
                <td>
                    <input type="password" id="LoginPwdConfirm" name="LoginPwdConfirm" minlength="6" maxlength="20" class="required" equalto="#LoginPwd" /></td>
            </tr>            
        </table>
    </form>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ScriptContent" runat="server">
    <script type="text/javascript">

        var flag = false;

        function validate() {
            return $("#frm").valid();
        };

        $(function () {
            $("#frm").validate();

        });

    </script>
</asp:Content>
